package com.mengjiahui.auduoplayer.bean;

import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * @author Meng
 * @data 2020/5/9
 */
public class Music implements Serializable {
    private Integer musicId; //音乐id
    private Integer albumId; //专辑id
    private String displayName; //文件名
    private String album;    //专辑名
    private Integer musicIcon; //音乐图片
    private String musicName; //歌曲名
    private String author;   //歌手名
    private Integer displayTime; //音乐时长
    private boolean isMusic; //是否为音乐
    private String path;  //文件路径
    private Bitmap musicImg;
    private String fileLink;

    public Music(Integer musicIcon, String musicName, String author) {
        this.musicIcon = musicIcon;
        this.musicName = musicName;
        this.author = author;
    }

    public Music() {

    }

    public Integer getMusicIcon() {
        return musicIcon;
    }

    public void setMusicIcon(Integer musicIcon) {
        this.musicIcon = musicIcon;
    }

    public String getMusicName() {
        return musicName;
    }

    public void setMusicName(String musicName) {
        this.musicName = musicName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }


    public void setMusicId(Integer musicId) {
        this.musicId = musicId;
    }


    public Integer getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Integer albumId) {
        this.albumId = albumId;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getAlbum() {
        return album;
    }

    public void setAlbum(String album) {
        this.album = album;
    }

    public Integer getDisplayTime() {
        return displayTime;
    }

    public void setDisplayTime(Integer displayTime) {
        this.displayTime = displayTime;
    }

    public boolean isMusic() {
        return isMusic;
    }

    public void setMusic(boolean music) {
        isMusic = music;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Bitmap getMusicImg() {
        return musicImg;
    }

    public void setMusicImg(Bitmap musicImg) {
        this.musicImg = musicImg;
    }

    public Integer getMusicId() {
        return musicId;
    }

    public String getFileLink() {
        return fileLink;
    }

    public void setFileLink(String fileLink) {
        this.fileLink = fileLink;
    }

    @Override
    public String toString() {
        return "Music{" +
                "musicId=" + musicId +
                ", albumId=" + albumId +
                ", displayName='" + displayName + '\'' +
                ", album='" + album + '\'' +
                ", musicIcon=" + musicIcon +
                ", musicName='" + musicName + '\'' +
                ", author='" + author + '\'' +
                ", displayTime=" + displayTime +
                ", isMusic=" + isMusic +
                ", path='" + path + '\'' +
                '}';
    }

}
